package com.dsbridge.bank.business;

import java.sql.SQLException;
import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.dsbridge.bank.model.Transction;

public interface TransactionBusinessServiceInterface {

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Transction insert(Transction t) throws SQLException;

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Transction update(Transction t) throws SQLException;

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract Transction delete(Transction t) throws SQLException;

	@Transactional(propagation = Propagation.REQUIRED)
	public abstract List<Transction> retrieveTransbyAccountid(int accountid)
			throws SQLException;

}